package spar.cancer.data.to.dump;

import spar.cancer.struct.CheckInfo;

import java.util.HashMap;
import java.util.Map;

public abstract class DumpAbstract implements Dump{
    protected Map<String, String> makeHash(CheckInfo info) {
        Map<String, String> hash = new HashMap<>();
        hash.put("lineNumber", String.valueOf(info.lineNumber));
        hash.put("iterId", String.valueOf(info.iterId));
        hash.put("checkId", String.valueOf(info.checkId));
        hash.put("checkTime", String.valueOf(info.checkTime));
        hash.put("type", info.type.toString());
        hash.put("name", info.name);
        hash.put("value", info.value.toString());
        return hash;
    }
}
